package com.simit.service.impl;

import com.simit.mapper.YuanShenMapper;
import com.simit.pojo.YuanShen;
import com.simit.service.YuanShenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YuanShenServiceImpl1 implements YuanShenService {

    @Qualifier("yuanShenMapper")
    @Autowired
    private YuanShenMapper mapper;

    @Override
    public List<YuanShen> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public List<YuanShen> selectByConditions(YuanShen yuanShen) {
        return mapper.selectByConditions(yuanShen);
    }

    @Override
    public YuanShen selectByName(String name) {
        return mapper.selectByName(name);
    }

    @Override
    public void add(YuanShen yuanShen) {
        mapper.add(yuanShen);
    }

    @Override
    public void update(YuanShen yuanShen) {
        mapper.update(yuanShen);
    }

    @Override
    public void delete(YuanShen yuanShen) {
        mapper.delete(yuanShen);
    }

    @Override
    public void deleteByNames(String[] names) {
        mapper.deleteByNames(names);
    }
}
